home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / inc9110b.lzh / include / string.h < prev    next >
C/C++ Source or Header  |  1991-05-29  |  2KB  |  52 lines

  1. /*
  2.  * String functions.
  3.  */
  4.  
  5. /*
  6.  *  3.3.91 sjw; ensure only effective once
  7.  * 19.3.91 sjw; mem routines should be void * not char *
  8.  * 21.5.91 sjw; add strdup()
  9.  * 29.5.91 sjw; bcopy(), bcmp(), bzero() should use void * not char *
  10.  */
  11.  
  12. #ifndef __STRING_H__
  13. #define __STRING_H__
  14.  
  15. char   *strcpy(char *dst, const char *src);
  16. char   *strncpy(char *dst, const char *src, int size);
  17. char   *strcat(char *dst, const char *src);
  18. char   *strncat(char *dst, const char *src, int size);
  19. int     strcmp(const char *s1, const char *s2);
  20. int     strncmp(const char *s1, const char *s2, int size);
  21. char   *strchr(const char *s, int charwanted);
  22. char   *strrchr(const char *s, int charwanted);
  23. int     strspn(const char *s, const char *accept);
  24. int     strcspn(const char *s, const char *reject);
  25. char   *strpbrk(const char *s, const char *breakat);
  26. char   *strstr(const char *s, const char *wanted);
  27. int     strlen(const char *s);
  28. char   *strerror(int errnum);
  29. char   *strtok(char *s, const char *delim);
  30. char   *strdup(const char *s);
  31.  
  32. void   *memcpy(void *dst, const void *src, int size);
  33. int     memcmp(const void *s1, const void *s2, int size);
  34. void   *memchr(const void *s, int ucharwanted, int size);
  35. void   *memset(void *s, int ucharfill, int size);
  36.  
  37. /* ?? */
  38. void   *memccpy(void *dst, const void *src, int ucharstop, int size);
  39.  
  40. /*
  41.  * V7 and Berklix compatibility.
  42.  */
  43.  
  44. char   *index(const char *s, int charwanted);
  45. char   *rindex(const char *s, int charwanted);
  46. int     bcopy(const void *src, void *dst, int length);
  47. int     bcmp(const void *s1, const void *s2, int length);
  48. int     bzero(void *dst, int length);
  49.  
  50. #endif /* __STRING_H__ */
  51.  
  52.